﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.Purchasing
{
    /// <summary>
    /// BTB_Purchase
    /// </summary>
    [Table("BTB_Purchase")]
    public class BTB_Purchase
    {

        /// <summary>
        /// id
        /// </summary>
        [Key, Column(Order = 1)]
        public String id { get; set; }

        /// <summary>
        /// GoodsSpecificationsItemID
        /// </summary>
        public String GoodsSpecificationsItemID { get; set; }

        /// <summary>
        /// Count
        /// </summary>
        public Int32? Count { get; set; }

        /// <summary>
        /// State
        /// </summary>
        public Boolean State { get; set; }

        /// <summary>
        /// CreateTime
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// EditTime
        /// </summary>
        public DateTime? EditTime { get; set; }

        /// <summary>
        /// CreatorId
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// Editor
        /// </summary>
        public String Editor { get; set; }

        /// <summary>
        /// Deleted
        /// </summary>
        public Boolean? Deleted { get; set; }
        /// <summary>
        /// 缺货量
        /// </summary>
        [NotMapped]
        public int? LackNumber { get; set; }
        /// <summary>
        /// 规格名称
        /// </summary>
        [NotMapped]
        public String name { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [NotMapped]
        public String Goodsname { get; set; }
    }
}